package com.mine.yyb.modules.sys.utils;

import java.util.Random;

public class Test
{
    public static void main(String[] args)
    {
        Random random = new Random();
        
        int count = 1;
        int com = 0;
        int net = 0;
        while(count <= 100000)
        {
            int temp = random.nextInt(100) + 1;
            if(temp < 10) 
            {
                net++;
            }
            else
            {
                com++;
            }
            count++;
        }
        System.out.println("com = " + com);
        System.out.println("net = " + net);
    }
}
